package com.qf.controller;

import com.qf.entity.Merchant_category;
import com.qf.service.Merchant_categoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

//商家分类 控制器层
@RestController
@RequestMapping("/Merchant_categoryController")
public class Merchant_categoryController {

    @Autowired
    private Merchant_categoryService merchant_categoryService;

    /**
     * 查询所有的商家分类
     * @return
     */
    @RequestMapping("/selectAllMerchant_category")
    public List<Merchant_category> selAllMerchant_category(){
        System.out.println("====ssssssssssssssssss==========");
        return merchant_categoryService.selAllMerchant_category();
    }
}
